﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Page/MasterPage.master" AutoEventWireup="true"
    CodeFile="BidsList.aspx.cs" Inherits="Page_Bids_BidsList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../../CSS/PageStyle.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="FrameStyle">
        <div class="PageTitleStyle">
            <asp:Image ID="bgpicBids" runat="server" ImageUrl="~/Images/Bids/bgpicBidsTop.png" />
        </div>
        <div id="BidsList">
            <div class="bgTop">
            </div>
            <div class="bgRepeat">
                <asp:GridView ID="GVBid" runat="server" AutoGenerateColumns="False" EmptyDataText="No Data"
                    CssClass="DataViewStyle" GridLines="None" AllowPaging="True" 
                    onpageindexchanging="GVBid_PageIndexChanging">
                    <Columns>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Label ID="Label1" runat="server" Text="Title"></asp:Label>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:LinkButton ID="LBTitle" runat="server" class="DataViewTitleStyle" Text='<%# Eval("BidTitle") %>' CommandArgument='<%# Eval("BidId")%>'
                                    OnClick="LBTitle_Click" CausesValidation="False"></asp:LinkButton>
                            </ItemTemplate>
                            <ControlStyle Width="170px" />
                            <HeaderStyle CssClass="DataHearderStyle" ForeColor="#CC0000"/>
                            <ItemStyle CssClass="DataItemStyle" />
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Label ID="Label2" runat="server" Text="Industry Type"></asp:Label>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="LableIndusryType" runat="server" Text='<%# Eval("BidIndustry") %>'></asp:Label>
                            </ItemTemplate>
                            <ControlStyle Width="115px" />
                            <HeaderStyle CssClass="DataHearderStyle" ForeColor="#CC0000"/>
                            <ItemStyle CssClass="DataItemStyle" />
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Label ID="Label3" runat="server" Text="Contact"></asp:Label>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="LableContact" runat="server" Text='<%# Eval("ContactType") %>'></asp:Label>
                            </ItemTemplate>
                            <ControlStyle Width="115px" />
                            <HeaderStyle CssClass="DataHearderStyle" ForeColor="#CC0000"/>
                            <ItemStyle CssClass="DataItemStyle" />
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Label ID="Label4" runat="server" Text="Expiration"></asp:Label>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label5" runat="server" Text='<%# Eval("EndDate") %>'></asp:Label>
                            </ItemTemplate>
                            <ControlStyle Width="80px" />
                            <HeaderStyle CssClass="DataHearderStyle" ForeColor="#CC0000"/>
                            <ItemStyle CssClass="DataItemStyle" />
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </div>
            <div class="bgBottom">
            </div>
            <div class="ButtonAndBlankStyle">
                <table>
                    <tr>
                        <td width="445px" align="right">
                        </td>
                        <td width="85px">
                            <asp:ImageButton ID="btnBidsBack" runat="server" ImageUrl="~/Images/btnPublicBack.png"
                                CausesValidation="False" OnClick="btnBidsBack_Click" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div id="CallForABid">
            <div class="TopStyle" style="color:#CC0000">
                Call For A Bid!
            </div>
            <div class="bgTop">
            </div>
            <div class="bgRepeat">
                <table cellspacing="4" class="TableStyle">
                    <tr>
                        <td class="TableHeaderStyle" width="150">
                            Title:
                        </td>
                        <td>
                            <asp:TextBox ID="txtPostBidTitle" runat="server" CssClass="TextboxStyle" 
                                Width="265px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="rfvPostBidTitle" runat="server" ErrorMessage="Required."
                                ControlToValidate="txtPostBidTitle" 
                                CssClass="ValidatorStyle"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="TableHeaderStyle" width="150">
                            Industry:
                        </td>
                        <td>
                            <asp:DropDownList ID="ddltxtPostBidIndustry" runat="server" CssClass="DropDownListStyle"
                                Width="269px">
                                <asp:ListItem>Advertising Industry</asp:ListItem>
                                <asp:ListItem>Building Industry</asp:ListItem>
                                <asp:ListItem>Clothing Industry</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td class="TableHeaderStyle" width="150">
                            Contact:
                        </td>
                        <td>
                            <asp:TextBox ID="txtPostBidContact" runat="server" CssClass="TextboxStyle" 
                                Width="265px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="rfvPostBidContact" runat="server" ErrorMessage="Required."
                                ControlToValidate="txtPostBidContact" 
                                CssClass="ValidatorStyle"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="TableHeaderStyle" width="150">
                            Address:
                        </td>
                        <td>
                            <asp:TextBox ID="txtPostBidAddress" runat="server" CssClass="TextboxStyle" 
                                Width="265px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="rfvPostBidAddress" runat="server" ErrorMessage="Required."
                                ControlToValidate="txtPostBidAddress" 
                                CssClass="ValidatorStyle"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="TableHeaderStyle" width="150">
                            Phone:
                        </td>
                        <td>
                            <asp:TextBox ID="txtPostBidPhone" runat="server" CssClass="TextboxStyle" 
                                Width="265px"></asp:TextBox>
                            <br />
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtPostBidPhone"
                                Display="Dynamic" ErrorMessage="Wrong phone number type." 
                                Font-Size="Small" ForeColor="#CC0000"
                                ValidationExpression="[1][3-8]\d{9}" CssClass="ValidatorStyle"></asp:RegularExpressionValidator>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="rfvPostBidPhone" runat="server" ErrorMessage="Required."
                                ControlToValidate="txtPostBidPhone" 
                                CssClass="ValidatorStyle"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="TableHeaderStyle" width="150">
                            Fax:
                        </td>
                        <td>
                            <asp:TextBox ID="txtPostBidFax" runat="server" CssClass="TextboxStyle" 
                                Width="265px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="rfvPostBidFax" runat="server" ErrorMessage="Required."
                                ControlToValidate="txtPostBidFax" 
                                CssClass="ValidatorStyle"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="TableHeaderStyle" width="150">
                            Email:
                        </td>
                        <td>
                            <asp:TextBox ID="txtPostBidEmail" runat="server" CssClass="TextboxStyle" 
                                Width="265px"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtPostBidEmail"
                                ErrorMessage="Format: XXX@XXX.com" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                                CssClass="ValidatorStyle" Display="Dynamic"></asp:RegularExpressionValidator>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="rfvPostBidEmail" runat="server" ErrorMessage="Required."
                                ControlToValidate="txtPostBidEmail" 
                                CssClass="ValidatorStyle"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="TableHeaderStyle" width="150">
                            Openning Date:
                        </td>
                        <td>
                            <asp:TextBox ID="txtPostBidOpenningDate" runat="server" CssClass="TextboxStyle" 
                                Width="265px"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtPostBidOpenningDate"
                                ErrorMessage="Format: XXXX-XX-XX" Font-Size="Small" ForeColor="#CC0000" 
                                ValidationExpression="\d{4}-\d{2}-\d{2}" CssClass="ValidatorStyle" 
                                Display="Dynamic"></asp:RegularExpressionValidator></td>
                        <td>
                            <asp:RequiredFieldValidator ID="rfvPostBidOpenlingDate" runat="server" ErrorMessage="Required."
                                ControlToValidate="txtPostBidOpenningDate" 
                                CssClass="ValidatorStyle"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="TableHeaderStyle" width="150">
                            Expiration Date:
                        </td>
                        <td>
                            <asp:TextBox ID="txtPostBidExpirationDate" runat="server" 
                                CssClass="TextboxStyle" Width="265px"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="txtPostBidExpirationDate"
                                ErrorMessage="Format: XXXX-XX-XX" Font-Size="Small" ForeColor="#CC0000" 
                                ValidationExpression="\d{4}-\d{2}-\d{2}" CssClass="ValidatorStyle" 
                                Display="Dynamic"></asp:RegularExpressionValidator>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="rfvPostBidExpirationDate" runat="server" ErrorMessage="Required."
                                ControlToValidate="txtPostBidExpirationDate" 
                                CssClass="ValidatorStyle"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="TableHeaderStyle" style="vertical-align: top" width="150">
                            Details:
                        </td>
                        <td>
                            <asp:TextBox ID="txtPostBidDetails" runat="server" TextMode="MultiLine"  
                                CssClass="TextboxStyle" Height="100px" Width="265px"></asp:TextBox>
                        </td>
                        <td style="vertical-align: top">
                            <asp:RequiredFieldValidator ID="rfvPostBidSummary" runat="server" ErrorMessage="Required."
                                ControlToValidate="txtPostBidDetails" 
                                CssClass="ValidatorStyle"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="bgBottom">
            </div>
            <div class="ButtonAndBlankStyle">
                <table>
                    <tr>
                        <td width="445px">
                        </td>
                        <td width="85px">
                            <asp:ImageButton ID="btnPostBidSubmit" runat="server" ImageUrl="~/Images/btnPublicSubmit.png"
                                OnClick="btnPostBidSubmit_Click" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</asp:Content>
